package com.hurl.waguji.web.cx;

import org.apache.struts2.json.JSONUtil;
import org.json.JSONArray;
import org.testng.annotations.Test;

public class Cx_TestCase {
//	@Test
	public void test_ProfileAction() throws Exception{
		ProfileAction action = new ProfileAction();
		action.setGpdm("SH600000");
		action.gdgb();
	}
//	@Test
	public void test_phfx() throws Exception{
		PhfxAction a = new PhfxAction();
		a.execute();
	}
//	@Test
	public void test_PhfxAction()throws Exception{
		PhfxAction a = new PhfxAction();
		a.execute();
	}
//	@Test
	public void test_SelectorAction()throws Exception{
//		SelectorAction action = new SelectorAction();
//		action.query();
		String str = "[{title:\"行业\",id:\"hy\"},{title:\"涨幅\",id:\"zf\"}]";
		JSONArray arr = new JSONArray(str);
		
		return;
	}
	
	@Test
	public void test_Dzcx()throws Exception{
		DzcxAction action = new DzcxAction();
		action.setStart(0);
		action.setLimit(20);
		action.setDzcxId(1);
		action.data();
		System.out.println(action.getResult());
	}
	
//	@Test
	public void test_findColumnNameToIndex()throws Exception{
	}
}
